package com.iflysse.pojo.vo.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("登录响应的result")
public class UserResp implements Serializable {
    @ApiModelProperty(value = "角色")
    private String role;
    @ApiModelProperty(value = "token信息")
    private String token;
    @ApiModelProperty(value = "用户编号")
    private String userId;

    public UserResp(String role, String token, String userId) {
        this.role = role;
        this.token = token;
        this.userId = userId;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public UserResp() {
    }
}
